import Ref from "../ref/Ref.js";

function getPath() {
  return location.hash.split("?")[0]
}

export const locationPath = new Ref(getPath());

window.onhashchange = () => {
  locationPath.value = location.hash;
}
